import instance from "@/axios";

// AI对话接口
export const sendAIMessage = (message) => {
    return instance({
        url: '/ai/chat',
        method: 'POST',
        data: { message }
    })
}

// 获取AI对话历史
export const getAIChatHistory = () => {
    return instance({
        url: '/ai/chat/history',
        method: 'POST'
    })
}